import {axios} from '@/utils/request'

// api接口列表
const api = {
    page: '/pay/wallet/page',
    detailByUid: '/pay/wallet/detail/uid/{uid}',
    updateBalance: '/pay/wallet/update-balance',
}

export function page(params) {
    return axios({
        url: api.page,
        method: 'get',
        params
    })
}

export function detailByUid(uid) {
    return axios({
        url: api.detailByUid.replace('{uid}', uid),
        method: 'get'
    })
}

export function updateBalance(data) {
    return axios({
        url: api.updateBalance,
        method: 'put',
        data
    })
}
